package com.ttg.web.dao;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ttg.common.entities.BasePage;
import com.ttg.model.dto.RoleListDTO;
import com.ttg.model.pojo.AdminRole;
import com.ttg.model.vo.RoleVO;


import java.util.List;

/**
 * @author ZQ
 * @version 1.0
 * @Description
 * @date 2021/1/27 10:02
 */
public interface AdminRoleDao extends IService<AdminRole> {


    Integer getCountByRoleName(String roleName);

    Integer getCountByRoleId(Long roleId);

    Integer getCountByRoleIdAndRoleName(Long roleId,String roleName);

    Long saveAdminRole(AdminRole adminRole);

    AdminRole findRoleAuths(Long roleId);

    boolean updateAdmRole(AdminRole adminRole,Long roleId);

    boolean deleteByRoleId(Long roleId);

    BasePage<AdminRole> selectListByKeywordAndRoleTypeAndOrgNo(RoleListDTO reqDto);

    AdminRole selectOneByIdAndOrgNO(Long roleId);

    List<RoleVO> role(String lang, List<Long> roleHideId);

    AdminRole findRoleById(Long roleId);

    List<AdminRole> selectListByRoleIds(List<Long> roleId);


}
